﻿package com.skcc.cop.mrtaxi.biz.destination;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

import com.skcc.cop.mrtaxi.BaseActivity;
import com.skcc.cop.mrtaxi.R;



public class DriverInfo extends BaseActivity implements OnClickListener {

	
	public static final int requestCode = 100;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.driver_info);
		
		//StrictMode
		StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
		StrictMode.setThreadPolicy(policy); 
				
		
		Button button1 = (Button)findViewById(R.id.button1);
		Button button2 = (Button)findViewById(R.id.button2);
		
		
		button1.setOnClickListener(this);
		button2.setOnClickListener(this);
		
		
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
		 if (v.getId() == R.id.button1){
			 
			 Toast.makeText(DriverInfo.this, "확인", Toast.LENGTH_SHORT).show();
			 
			 

			 Intent intent = new Intent(getBaseContext(),DriverMap.class);
			 startActivityForResult(intent, requestCode);
			 
		}else if (v.getId() == R.id.button2){
				 
			Toast.makeText(DriverInfo.this, "취소", Toast.LENGTH_SHORT).show();

		}
		 
	}
}